300 |
How do I get the handle of the cell
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_CellBold(null,var_Items.get_ItemCell(h,0),true); |
299 |
How do I retrieve the focused item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_ItemBold(var_Items.FocusItem,true); |
298 |
How do I get the number or count of child items
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.AddItem(var_Items.get_ChildCount(h)); |
297 |
How do I enumerate the visible items
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.set_ItemBold(var_Items.FirstVisibleItem,true); var_Items.set_ItemBold(var_Items.get_NextVisibleItem(var_Items.FirstVisibleItem),true); |
296 |
How do I enumerate the siblings items
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.set_ItemBold(var_Items.get_NextSiblingItem(var_Items.FirstVisibleItem),true); var_Items.set_ItemBold(var_Items.get_PrevSiblingItem(var_Items.get_NextSiblingItem(var_Items.FirstVisibleItem)),true); |
295 |
How do I get the parent item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_ItemBold(var_Items.get_ItemParent(var_Items.get_ItemChild(h)),true); |
294 |
How do I get the first child item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.set_ItemBold(var_Items.get_ItemChild(h),true); |
293 |
How do I enumerate the root items
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ItemBold(var_Items.get_RootItem(0),true); var_Items.set_ItemUnderline(var_Items.get_RootItem(1),true); |
292 |
I have a hierarchy, how can I count the number of root items
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root 1"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); h = var_Items.AddItem("Root 2"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.AddItem(var_Items.RootCount); |
291 |
How can I make an item unselectable, or not selectable
exgantt1.Columns.Add("Column"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("unselectable - you can't get selected"); var_Items.set_SelectableItem(h,false); var_Items.AddItem("selectable"); |
290 |
How can I hide or show an item
exgantt1.Columns.Add("Column"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("hidden"); var_Items.set_ItemHeight(h,0); var_Items.set_SelectableItem(h,false); var_Items.AddItem("visible"); |
289 |
How can I change the height for all items
exgantt1.DefaultItemHeight = 32; exgantt1.Columns.Add("Column"); exgantt1.Items.AddItem("One"); exgantt1.Items.AddItem("Two"); |
288 |
How do I change the height of an item
exgantt1.ScrollBySingleLine = true; exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_ItemHeight(var_Items.AddItem("height"),128); exgantt1.Items.AddItem("enabled"); |
287 |
How do I disable or enable an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_EnableItem(var_Items.AddItem("disabled"),false); exgantt1.Items.AddItem("enabled"); |
286 |
How do I display as strikeout a cell
|
285 |
How do I display as strikeout a cell or an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaptionFormat(var_Items.AddItem("gets <s>strikeout</s> only a portion of text"),0,exontrol.EXGANTTLib.CaptionFormatEnum.exHTML); |
284 |
How do I display as strikeout an item
|
283 |
How do I underline a cell
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellUnderline(var_Items.AddItem("underline"),0,true); |
282 |
How do I underline a cell or an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaptionFormat(var_Items.AddItem("gets <u>underline</u> only a portion of text"),0,exontrol.EXGANTTLib.CaptionFormatEnum.exHTML); |
281 |
How do I underline an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_ItemUnderline(var_Items.AddItem("underline"),true); |
280 |
How do I display as italic a cell
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellItalic(var_Items.AddItem("italic"),0,true); |
279 |
How do I display as italic a cell or an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaptionFormat(var_Items.AddItem("gets <i>italic</i> only a portion of text"),0,exontrol.EXGANTTLib.CaptionFormatEnum.exHTML); |
278 |
How do I display as italic an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_ItemItalic(var_Items.AddItem("italic"),true); |
277 |
How do I bold a cell
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellBold(var_Items.AddItem("bold"),0,true); |
276 |
How do I bold a cell or an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaptionFormat(var_Items.AddItem("gets <b>bold</b> only a portion of text"),0,exontrol.EXGANTTLib.CaptionFormatEnum.exHTML); |
275 |
How do I bold an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_ItemBold(var_Items.AddItem("bold"),true); |
274 |
How do I change the foreground color for the item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); int hC = var_Items.InsertItem(h,null,"Child 1"); var_Items.set_ItemForeColor(hC,Color.FromArgb(255,0,0)); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); |
273 |
How do I change the visual appearance for the item, using your EBN technology
exgantt1.VisualAppearance.Add(1,"c:\\exontrol\\images\\normal.ebn"); exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); int hC = var_Items.InsertItem(h,null,"Child 1"); var_Items.set_ItemBackColor32(hC,0x1000000); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); |
272 |
How do I change the background color for the item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); int hC = var_Items.InsertItem(h,null,"Child 1"); var_Items.set_ItemBackColor(hC,Color.FromArgb(255,0,0)); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); |
271 |
How do I expand or collapse an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); |
270 |
How do I associate an extra data to an item
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_ItemData(var_Items.AddItem("item"),"your extra data"); |
269 |
How do I get the number or count of items
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); exontrol.EXGANTTLib.Items var_Items1 = exgantt1.Items; var_Items1.AddItem(var_Items1.ItemCount); |
268 |
How can I specify the width of the ActiveX control, when using the InsertControlItem property
exgantt1.ScrollBySingleLine = false; exgantt1.TreeColumnIndex = 1; exgantt1.DrawGridLines = exontrol.EXGANTTLib.GridLinesEnum.exAllLines; exgantt1.Columns.Add("C1"); exgantt1.Columns.Add("C2"); exgantt1.Columns.Add("C3"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.InsertControlItem(null,"MSCAL.Calendar",null); var_Items.set_ItemWidth(h,128); var_Items.set_CellCaption(h,0,"This is a bit of text that is shown in the first column"); var_Items.set_CellSingleLine(h,0,exontrol.EXGANTTLib.CellSingleLineEnum.exCaptionWordWrap); var_Items.set_CellCaption(h,2,"This is a bit of text that is shown in the third column"); var_Items.set_CellSingleLine(h,2,exontrol.EXGANTTLib.CellSingleLineEnum.exCaptionWordWrap); |
267 |
How can I put the ActiveX control in a different column, when using the InsertControlItem property
|
266 |
Is there any function I can use to get the program or the control identifier I've been using when called the InsertControlItem
exgantt1.Columns.Add("Default"); exgantt1.ScrollBySingleLine = false; exgantt1.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot; exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.InsertControlItem(null,"MSCAL.Calendar",null); var_Items.InsertItem(h,null,var_Items.get_ItemControlID(h)); var_Items.set_ExpandItem(h,true); h = var_Items.InsertControlItem(null,"MSChart20Lib.MSChart",null); var_Items.set_ItemAppearance(h,exontrol.EXGANTTLib.AppearanceEnum.Etched); var_Items.InsertItem(h,null,var_Items.get_ItemControlID(h)); var_Items.set_ExpandItem(h,true); |
265 |
How can I change the height of newly created ActiveX control, using the InsertControlItem
exgantt1.Columns.Add("Default"); exgantt1.ScrollBySingleLine = false; exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_ItemHeight(var_Items.InsertControlItem(null,"MSCAL.Calendar",null),64); var_Items.set_ItemAppearance(var_Items.InsertControlItem(null,"MSChart20Lib.MSChart",null),exontrol.EXGANTTLib.AppearanceEnum.Etched); |
264 |
How can I change the border for newly created ActiveX control, using the InsertControlItem
exgantt1.Columns.Add("Default"); exgantt1.ScrollBySingleLine = false; exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_ItemAppearance(var_Items.InsertControlItem(null,"MSCAL.Calendar",null),exontrol.EXGANTTLib.AppearanceEnum.Sunken); var_Items.set_ItemAppearance(var_Items.InsertControlItem(null,"MSChart20Lib.MSChart",null),exontrol.EXGANTTLib.AppearanceEnum.Etched); |
263 |
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); // Add 'Microsoft Calendar Control 2007(MSCAL.OCX)' reference to your project. MSACAL.Calendar var_Calendar = (var_Items.get_ItemObject(var_Items.InsertControlItem(h,"MSCAL.Calendar",null)) as MSACAL.Calendar); var_Calendar.BackColor = Color.FromArgb(255,255,255); var_Calendar.GridCellEffect = 0; var_Calendar.ShowTitle = false; var_Calendar.ShowDateSelectors = false; var_Items.set_ExpandItem(h,true); |
262 |
How can I access the properties and methods for an ActiveX control that I've just added using the InsertControlItem
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); // Add 'Microsoft Calendar Control 2007(MSCAL.OCX)' reference to your project. MSACAL.Calendar var_Calendar = (var_Items.get_ItemObject(var_Items.InsertControlItem(h,"MSCAL.Calendar",null)) as MSACAL.Calendar); var_Calendar.BackColor = Color.FromArgb(255,255,255); var_Items.set_ExpandItem(h,true); |
261 |
How can I insert an ActiveX control
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertControlItem(h,"MSCAL.Calendar",null); var_Items.set_ExpandItem(h,true); |
260 |
How do I programmatically edit a cell
exgantt1.AllowEdit = true; exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.Edit(var_Items.FocusItem,0); |
259 |
How can I change at runtime the parent of the item
exgantt1.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot; exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int hP = var_Items.AddItem("Root"); int hC = var_Items.AddItem("Child"); var_Items.SetParent(hC,hP); |
258 |
How can I sort the items
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); exgantt1.Columns["Default"].SortOrder = exontrol.EXGANTTLib.SortOrderEnum.SortDescending; |
257 |
How do I sort the child items
exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Root"); var_Items.InsertItem(h,null,"Child 1"); var_Items.InsertItem(h,null,"Child 2"); var_Items.set_ExpandItem(h,true); var_Items.SortChildren(h,0,false); |
256 |
How can I ensure or scroll the control so the item fits the control's client area
|
255 |
How can I remove or delete all items
exgantt1.Columns.Add("Default"); exgantt1.Items.AddItem("removed item"); exgantt1.Items.RemoveAllItems(); |
254 |
How can I remove or delete an item
exgantt1.Columns.Add("Default"); int h = exgantt1.Items.AddItem("removed item"); exgantt1.Items.RemoveItem(h); |
253 |
How can I add or insert child items
exgantt1.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot; exgantt1.Columns.Add("C1"); exgantt1.Columns.Add("C2"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; int h = var_Items.AddItem("Cell 1"); var_Items.set_CellCaption(h,1,"Cell 2"); var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Cell 3"),1,"Cell 4"); var_Items.set_CellCaption(var_Items.InsertItem(h,null,"Cell 5"),1,"Cell 6"); var_Items.set_ExpandItem(h,true); |
252 |
How can I add or insert a child item
exgantt1.LinesAtRoot = exontrol.EXGANTTLib.LinesAtRootEnum.exLinesAtRoot; exgantt1.Columns.Add("Default"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.InsertItem(var_Items.AddItem("root"),null,"child"); |
251 |
How can I add or insert an item
exgantt1.Columns.Add("C1"); exgantt1.Columns.Add("C2"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaption(var_Items.AddItem("Cell 1"),1,"Cell 2"); int h = var_Items.AddItem("Cell 3"); var_Items.set_CellCaption(h,1,"Cell 4"); |
250 |
How can I add or insert an item
|
249 |
How can I get the columns as they are shown in the control's sortbar
|
248 |
How can I access the properties of a column
exgantt1.Columns.Add("A"); exgantt1.Columns["A"].HeaderBold = true; |
247 |
How can I remove all the columns
|
246 |
How can I remove a column
|
245 |
How can I get the number or the count of columns
|
244 |
How can I change the font for all cells in the entire column
stdole.IFontDisp f = new stdole.StdFont(); f.Name = "Tahoma"; f.Size = 12; exontrol.EXGANTTLib.ConditionalFormat var_ConditionalFormat = exgantt1.ConditionalFormats.Add("1",null); var_ConditionalFormat.Font = (f as stdole.IFontDisp); var_ConditionalFormat.ApplyTo = exontrol.EXGANTTLib.FormatApplyToEnum.exFormatToColumns; exgantt1.Columns.Add("Column"); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
243 |
How can I change the background color for all cells in the column
exontrol.EXGANTTLib.ConditionalFormat var_ConditionalFormat = exgantt1.ConditionalFormats.Add("1",null); var_ConditionalFormat.BackColor = Color.FromArgb(255,0,0); var_ConditionalFormat.ApplyTo = exontrol.EXGANTTLib.FormatApplyToEnum.exFormatToColumns; exgantt1.Columns.Add("Column"); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
242 |
How can I change the foreground color for all cells in the column
exontrol.EXGANTTLib.ConditionalFormat var_ConditionalFormat = exgantt1.ConditionalFormats.Add("1",null); var_ConditionalFormat.ForeColor = Color.FromArgb(255,0,0); var_ConditionalFormat.ApplyTo = exontrol.EXGANTTLib.FormatApplyToEnum.exFormatToColumns; exgantt1.Columns.Add("Column"); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
241 |
How can I show as strikeout all cells in the column
exontrol.EXGANTTLib.ConditionalFormat var_ConditionalFormat = exgantt1.ConditionalFormats.Add("1",null); var_ConditionalFormat.StrikeOut = true; var_ConditionalFormat.ApplyTo = exontrol.EXGANTTLib.FormatApplyToEnum.exFormatToColumns; exgantt1.Columns.Add("Column"); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
240 |
How can I underline all cells in the column
exontrol.EXGANTTLib.ConditionalFormat var_ConditionalFormat = exgantt1.ConditionalFormats.Add("1",null); var_ConditionalFormat.Underline = true; var_ConditionalFormat.ApplyTo = exontrol.EXGANTTLib.FormatApplyToEnum.exFormatToColumns; exgantt1.Columns.Add("Column"); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
239 |
How can I show in italic all data in the column
exontrol.EXGANTTLib.ConditionalFormat var_ConditionalFormat = exgantt1.ConditionalFormats.Add("1",null); var_ConditionalFormat.Italic = true; var_ConditionalFormat.ApplyTo = exontrol.EXGANTTLib.FormatApplyToEnum.exFormatToColumns; exgantt1.Columns.Add("Column"); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
238 |
How can I bold the entire column
exontrol.EXGANTTLib.ConditionalFormat var_ConditionalFormat = exgantt1.ConditionalFormats.Add("1",null); var_ConditionalFormat.Bold = true; var_ConditionalFormat.ApplyTo = exontrol.EXGANTTLib.FormatApplyToEnum.exFormatToColumns; exgantt1.Columns.Add("Column"); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
237 |
How can I display a computed column and highlight some values that are negative or less than a value
exgantt1.Columns.Add("A"); exgantt1.Columns.Add("B"); (exgantt1.Columns.Add("(A+B)*1.19") as exontrol.EXGANTTLib.Column).ComputedField = "(%0 + %1) * 1.19"; exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaption(var_Items.AddItem(1),1,2); exontrol.EXGANTTLib.Items var_Items1 = exgantt1.Items; var_Items1.set_CellCaption(var_Items1.AddItem(10),1,20); exontrol.EXGANTTLib.ConditionalFormat var_ConditionalFormat = exgantt1.ConditionalFormats.Add("%2 > 10",null); var_ConditionalFormat.Bold = true; var_ConditionalFormat.ForeColor = Color.FromArgb(255,0,0); var_ConditionalFormat.ApplyTo = (exontrol.EXGANTTLib.FormatApplyToEnum)0x2; |
236 |
Can I display a computed column so it displays the VAT, or SUM
exgantt1.Columns.Add("A"); exgantt1.Columns.Add("B"); (exgantt1.Columns.Add("(A+B)*1.19") as exontrol.EXGANTTLib.Column).ComputedField = "(%0 + %1) * 1.19"; exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaption(var_Items.AddItem(1),1,2); exontrol.EXGANTTLib.Items var_Items1 = exgantt1.Items; var_Items1.set_CellCaption(var_Items1.AddItem(10),1,20); |
235 |
How can I show a column that adds values in the cells
exgantt1.Columns.Add("A"); exgantt1.Columns.Add("B"); (exgantt1.Columns.Add("A+B") as exontrol.EXGANTTLib.Column).ComputedField = "%0 + %1"; exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaption(var_Items.AddItem(1),1,2); exontrol.EXGANTTLib.Items var_Items1 = exgantt1.Items; var_Items1.set_CellCaption(var_Items1.AddItem(10),1,20); |
234 |
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters
exontrol.EXGANTTLib.Column var_Column = (exgantt1.Columns.Add("Filter") as exontrol.EXGANTTLib.Column); var_Column.FilterOnType = true; var_Column.DisplayFilterButton = true; var_Column.AutoSearch = exontrol.EXGANTTLib.AutoSearchEnum.exContains; exgantt1.Items.AddItem("Canada"); exgantt1.Items.AddItem("USA"); |
233 |
Is there any function to filter the control's data as I type, something like filter on type
exontrol.EXGANTTLib.Column var_Column = (exgantt1.Columns.Add("Filter") as exontrol.EXGANTTLib.Column); var_Column.FilterOnType = true; var_Column.DisplayFilterButton = true; exgantt1.Items.AddItem("Canada"); exgantt1.Items.AddItem("USA"); |
232 |
How can I programmatically filter a column
exontrol.EXGANTTLib.Column var_Column = (exgantt1.Columns.Add("Filter") as exontrol.EXGANTTLib.Column); var_Column.DisplayFilterButton = true; var_Column.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exNonBlanks; exgantt1.Items.AddItem(null); exgantt1.Items.AddItem("not empty"); exgantt1.ApplyFilter(); |
231 |
How can I show or display the control's filter
|
230 |
How can I customize the items being displayed in the drop down filter window
exontrol.EXGANTTLib.Column var_Column = (exgantt1.Columns.Add("Custom Filter") as exontrol.EXGANTTLib.Column); var_Column.DisplayFilterButton = true; var_Column.DisplayFilterPattern = false; var_Column.CustomFilter = "Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*." + "txt|*.log"; var_Column.FilterType = exontrol.EXGANTTLib.FilterTypeEnum.exPattern; var_Column.Filter = "*.xls"; exgantt1.Items.AddItem("excel.xls"); exgantt1.Items.AddItem("word.doc"); exgantt1.Items.AddItem("pp.pps"); exgantt1.Items.AddItem("text.txt"); exgantt1.ApplyFilter(); |
229 |
How can I change the order or the position of the columns in the sort bar
exgantt1.SortBarVisible = true; exgantt1.SortBarColumnWidth = 48; (exgantt1.Columns.Add("C1") as exontrol.EXGANTTLib.Column).SortOrder = exontrol.EXGANTTLib.SortOrderEnum.SortAscending; (exgantt1.Columns.Add("C2") as exontrol.EXGANTTLib.Column).SortOrder = exontrol.EXGANTTLib.SortOrderEnum.SortDescending; exgantt1.Columns["C2"].SortPosition = 0; |
228 |
How do I arrange my columns on multiple levels
(exgantt1.Columns.Add("S") as exontrol.EXGANTTLib.Column).Width = 32; (exgantt1.Columns.Add("Level 2") as exontrol.EXGANTTLib.Column).LevelKey = 1; (exgantt1.Columns.Add("Level 3") as exontrol.EXGANTTLib.Column).LevelKey = 1; (exgantt1.Columns.Add("Level 4") as exontrol.EXGANTTLib.Column).LevelKey = 1; (exgantt1.Columns.Add("Level 1") as exontrol.EXGANTTLib.Column).LevelKey = "2"; (exgantt1.Columns.Add("Level 2") as exontrol.EXGANTTLib.Column).LevelKey = "2"; (exgantt1.Columns.Add("Level 3") as exontrol.EXGANTTLib.Column).LevelKey = "2"; (exgantt1.Columns.Add("Level 4") as exontrol.EXGANTTLib.Column).LevelKey = "2"; (exgantt1.Columns.Add("E") as exontrol.EXGANTTLib.Column).Width = 32; |
227 |
How do I arrange my columns on multiple lines
exgantt1.HeaderHeight = 32; (exgantt1.Columns.Add("") as exontrol.EXGANTTLib.Column).HTMLCaption = "Line 1<br>Line 2"; |
226 |
How can I display all cells using HTML format
(exgantt1.Columns.Add("HTML") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellCaptionFormat,1); exgantt1.Items.AddItem("<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>."); |
225 |
How can I display all cells using multiple lines
(exgantt1.Columns.Add("MultipleLine") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellSingleLine,false); (exgantt1.Columns.Add("SingleLine") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellSingleLine,true); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaption(var_Items.AddItem("This is a bit of long text that should break the line"),1,"this is a bit of long text that's displayed on a single line"); |
224 |
How do change the vertical alignment for all cells in the column
(exgantt1.Columns.Add("MultipleLine") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellSingleLine,false); (exgantt1.Columns.Add("VAlign") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellVAlignment,2); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaption(var_Items.AddItem("This is a bit of long text that should break the line"),1,"bottom"); exontrol.EXGANTTLib.Items var_Items1 = exgantt1.Items; var_Items1.set_CellCaption(var_Items1.AddItem("This is a bit of long text that should break the line"),1,"bottom"); |
223 |
How do change the foreground color for all cells in the column
(exgantt1.Columns.Add("ForeColor") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellForeColor,255); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
222 |
How do change the background color for all cells in the column
(exgantt1.Columns.Add("BackColor") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellBackColor,255); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
221 |
How do I show buttons for all cells in the column
exontrol.EXGANTTLib.Column var_Column = (exgantt1.Columns.Add("Button") as exontrol.EXGANTTLib.Column); var_Column.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasButton,true); var_Column.set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellButtonAutoWidth,true); exgantt1.Items.AddItem(" Button 1 "); exgantt1.Items.AddItem(" Button 2 "); |
220 |
How do I show buttons for all cells in the column
(exgantt1.Columns.Add("Button") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasButton,true); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
219 |
How do I display radio buttons for all cells in the column
(exgantt1.Columns.Add("Radio") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasRadioButton,true); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
218 |
How do I display checkboxes for all cells in the column
(exgantt1.Columns.Add("Check") as exontrol.EXGANTTLib.Column).set_Def(exontrol.EXGANTTLib.DefColumnEnum.exCellHasCheckBox,true); exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
217 |
How can I display a tooltip when the cursor hovers the column
|
216 |
Is there any function to assign a key to a column instead using its name or capion
|
215 |
Is there any function to assign any extra data to a column
|
214 |
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header
|
213 |
How can I specify the maximum width for the column, if I use WidthAutoResize property
exontrol.EXGANTTLib.Column var_Column = (exgantt1.Columns.Add("Auto") as exontrol.EXGANTTLib.Column); var_Column.WidthAutoResize = true; var_Column.MinWidthAutoResize = 32; var_Column.MaxWidthAutoResize = 128; exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
212 |
How can I specify the minimum width for the column, if I use WidthAutoResize property
exontrol.EXGANTTLib.Column var_Column = (exgantt1.Columns.Add("Auto") as exontrol.EXGANTTLib.Column); var_Column.WidthAutoResize = true; var_Column.MinWidthAutoResize = 32; exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
211 |
Is there any option to resize the column based on its data, captions
(exgantt1.Columns.Add("A") as exontrol.EXGANTTLib.Column).WidthAutoResize = true; exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
210 |
How can I align the icon in the column's header in the center
|
209 |
How do I align the icon in the column's header to the right
|
208 |
How do I show or hide the sorting icons, but still need sorting
(exgantt1.Columns.Add("Sorted") as exontrol.EXGANTTLib.Column).SortOrder = exontrol.EXGANTTLib.SortOrderEnum.SortAscending; exgantt1.Columns[0].DisplaySortIcon = false; |
207 |
How do I enable or disable the entire column
exgantt1.Columns.Add("C1"); (exgantt1.Columns.Add("Disabled") as exontrol.EXGANTTLib.Column).Enabled = false; exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaption(var_Items.AddItem(0),1,"0.1"); exontrol.EXGANTTLib.Items var_Items1 = exgantt1.Items; var_Items1.set_CellCaption(var_Items1.AddItem(1),1,"1.1"); |
206 |
How do I disable drag and drop columns
(exgantt1.Columns.Add("C1") as exontrol.EXGANTTLib.Column).AllowDragging = false; (exgantt1.Columns.Add("C2") as exontrol.EXGANTTLib.Column).AllowDragging = false; |
205 |
How do I disable resizing a column at runtime
|
204 |
How can I align the column to the right, and its caption too
exontrol.EXGANTTLib.Column var_Column = (exgantt1.Columns.Add("Column") as exontrol.EXGANTTLib.Column); var_Column.Alignment = exontrol.EXGANTTLib.AlignmentEnum.RightAlignment; var_Column.HeaderAlignment = exontrol.EXGANTTLib.AlignmentEnum.RightAlignment; exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
203 |
How can I align the column to the right
(exgantt1.Columns.Add("Column") as exontrol.EXGANTTLib.Column).Alignment = exontrol.EXGANTTLib.AlignmentEnum.RightAlignment; exgantt1.Items.AddItem(0); exgantt1.Items.AddItem(1); |
202 |
How do I change the column's caption
|
201 |
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it
exgantt1.set_FormatAnchor(false,"<b><u><fgcolor=880000> </fgcolor></u></b>"); exgantt1.Columns.Add("Column"); exontrol.EXGANTTLib.Items var_Items = exgantt1.Items; var_Items.set_CellCaptionFormat(var_Items.AddItem("Just an <a1>anchor</a> element ..."),0,exontrol.EXGANTTLib.CaptionFormatEnum.exHTML); exontrol.EXGANTTLib.Items var_Items1 = exgantt1.Items; var_Items1.set_CellCaptionFormat(var_Items1.AddItem("Just another <a2>anchor</a> element ..."),0,exontrol.EXGANTTLib.CaptionFormatEnum.exHTML); exgantt1.Items.AddItem("next item"); |